package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_union_hua_ben_open", desc = "商会话本开启日志", autoSave = true, uploadCk = true, isCross = true)
public class LogUnionHuaBenOpen extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "商会", isIndex = true)
    private String unionUid;

    @FieldTypeAnnotation(desc = "周id")
    private int weekId;

    @FieldTypeAnnotation(desc = "区服id")
    private long serverId;

    @FieldTypeAnnotation(desc = "商会会长")
    private long masterUserId;

    @FieldTypeAnnotation(desc = "难度")
    private int degree;

    @FieldTypeAnnotation(desc = "成员数量")
    private int memberCount;

    @FieldTypeAnnotation(desc = "商会总赚钱")
    private String totalEarn;

    public LogUnionHuaBenOpen(String unionUid, int weekId, long serverId, long masterUserId, int degree, int memberCount, String totalEarn) {
        this.unionUid = unionUid;
        this.weekId = weekId;
        this.serverId = serverId;
        this.masterUserId = masterUserId;
        this.degree = degree;
        this.memberCount = memberCount;
        this.totalEarn = totalEarn;
    }

    @Override
    public long getUserId() {
        return masterUserId;
    }
}
